package com.nova.android.tvlauncher.ui.activity.atv

import android.R
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import androidx.leanback.app.GuidedStepFragment
import com.nova.android.tvlauncher.AppCache
import com.nova.android.tvlauncher.bean.atv_bean.Notification
import com.nova.android.tvlauncher.databinding.ActivityStorageGuidedStepBinding
import com.nova.android.tvlauncher.ui.fragment.atv.StorageGuidedStepFragment
import com_github_lib_base.base.BaseVMActivity
import com_github_lib_base.base.BaseViewModel

class StorageGuidedStepActivity :
    BaseVMActivity<ActivityStorageGuidedStepBinding, BaseViewModel>() {
    var data: Notification.StorageDevice? = null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        window.setBackgroundDrawable(ColorDrawable(Color.parseColor("#21272A")))

        if (savedInstanceState == null) {
            data = AppCache.notification

            val fragment: GuidedStepFragment = StorageGuidedStepFragment()
            GuidedStepFragment.addAsRoot(this, fragment, R.id.content)
        }
    }
}